import './assets/main.css'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router.js'
//导入 createPinia
import { createPinia } from 'pinia'

//测试接口函数
import {getCategory} from '@/apis/testAPI'
getCategory().then(res => {
    console.log(res)
})

//创建 vue 对象
const app = createApp(App);
//执行方法得到 pinia 实例
const pinia = createPinia()
app.use(router)
app.use(pinia).mount('#app')
